package com.yh.javabean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
 * @Auther: Liang
 * @Date: 2024/5/18 - 05 - 18 - 17:42
 * @Description: com.yh.javabean
 * @version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private int id;
    private String name;
    private int age;
    @DateTimeFormat(fallbackPatterns = "yyyy-MM-dd")
    private Date birthday;

    public User(int id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }
}
